<?php
Doo::loadCore('db/DooModel');

class AlubmBase extends DooModel{

    /**
     * @var int Max length is 11.
     */
    public $albumid;

    /**
     * @var varchar Max length is 50.
     */
    public $name;

    /**
     * @var int Max length is 11.
     */
    public $type;

    public $_table = 'alubm';
    public $_primarykey = 'albumid';
    public $_fields = array('albumid','name','type');

    public function getVRules() {
        return array(
                'albumid' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'optional' ),
                ),

                'name' => array(
                        array( 'maxlength', 50 ),
                        array( 'notnull' ),
                ),

                'type' => array(
                        array( 'integer' ),
                        array( 'maxlength', 11 ),
                        array( 'notnull' ),
                )
            );
    }

}